#include <iostream>
using namespace std;


class Integer{
    private:
        int *m_pi ;
    public:
        Integer(int i = 0)
        {
            m_pi = new int(i);
        }
        void print(void)
        {
            cout << *m_pi << endl;
        }
        ~Integer()
        {
            delete m_pi;
        }
};


int main(void)
{
    Integer i1(100);
    Integer i2 = i1; //拷贝构造函数
    Integer i3(i1); //拷贝构造函数
    i2.print();
    i3.print();
    return 0;
}